package com.teamcooperation.controller;


import com.teamcooperation.service.UserService;
import com.teamcooperation.vo.T_user;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
@Api(tags = "用户表Controller类")
public class UserController {

    @Resource
    private UserService userService;
    @RequestMapping("login")
    public  String userlogin(String username,String password){
        List<T_user> result=userService.userlogin(username,password);
        return "main";
    }

}
